Validate a package according to specific validation settings.
Parent Type: PackageValidator
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public static ValidationResults Validate ( ) |
packageReader
The package to be valdated.
packageValidatorSettings
The PackageValidatorSettings determining which validation rules should be applied during the validation process.
A ValidationResults log that contains the warnings and errors encountered during the package validation process.
| Exception type | Condition |
| ArgumentNullException | Thrown if the packageReader is null. |
| InvalidPackageException | Thrown if the validation process encounters errors in the package for which the packageValidatorSettings have a ValidationBehavior value of |
The ValidationResults log will contain the warnings and errors encountered during the package validation process, up to any InvalidPackageException that is thrown during the process, at which time the validation process ends.